package com.woniuxy.provider;

import org.apache.ibatis.jdbc.SQL;

import com.woniuxy.pojo.Order_dgy;

public class OrderProvider {
	
	public String changeOrder(Order_dgy order){
		return new SQL(){
			{
				UPDATE("`order`");
				if(order.getOstate()!=null&&order.getOstate().length()!=0){
					SET("ostate=#{ostate}");
				}
				if(order.getTotalprice()!=null){
					SET("totalprice=#{totalprice}");
				}
				WHERE("oid=#{oid}");
			}
		}.toString();
	}

}
